package com.jbinfo.qingcaowan.studyManager.dao;

import java.io.Serializable;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.jbinfo.qingcaowan.common.dao.CommonDAO;
import com.jbinfo.qingcaowan.studyManager.dto.BookInfoModel;
import com.jbinfo.qingcaowan.studyManager.entity.BookInfo;
/**
 * 
* @ClassName: StudyManagerDao 
* @Description: TODO
* @author ZhangLei
* @date 2016年5月24日 下午4:03:23
 */
public interface BookManagerDao extends CommonDAO<BookInfo, Serializable> {
		
	public List<BookInfo> findByParam(BookInfoModel bookInfoModel);

	public void save(BookInfo bookInfo);

	public BookInfo getBookInfo(String bookId);

	public int editBook(BookInfo bookInfo);

	public int delBook(String bookId);

	public List<BookInfo> queryBookList(BookInfo bookInfo);

	public BookInfo getBookInfoByOthers(BookInfo bookInfo);

	public List<BookInfo> getBookByCode(BookInfo bookInfo);
	
	// 获取“今日”模块中的书籍阅读信息
	public List<BookInfo> selectBookInfoByOrg(String orgId);
	
	// 查询书籍下卡片总数
	public Integer selectCardCntByParam(BookInfo bookInfo);
	
	// 获取“开始阅读”后出现的书名等书籍内容
	public BookInfo selectByPrimaryKey(@Param("bookId") String bookId);
	
}
